<?php
require("inc/conn637.php");
$id=$_GET['id'];
if($id>0)
{
$sql="select * from lyb where ID=$id";
$result1=mysql_query($sql,$conn);
$rows=mysql_fetch_assoc($result1);
}
else header("location:lyb_admin637.php");
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
	<form  name="form1" action="update637.php" method="post">
  <p>留言编号:<input name="ID" type="text" id="ID" readonly="readonly" value="<?= $rows['ID'] ?>"></p>
  <P>标题:<input type="text" name="title" id="title" value="<?= $rows['title'] ?>"></P>
  <p>作者:<input type="text" name="author" id="author" value="<?= $rows['author'] ?>"></p>
  <p>内容:<textarea name="content" cols="60" rows="6" id="content"><?= $rows['content'] ?></textarea></p>
  <p>电子邮箱:
     <input type="text" name="Email" id="Email" value="<?= $rows['Email'] ?>"></p>
   <p>
      <label>性别<input name="sex" type="radio" value="男" id="sex_0" checked>男</label>
      <label><input name="sex" type="radio" value="女" id="sex_1">女
      </label></p>
  <p><input type="submit" name="updatebt" id="updatebt" value="更新留言"></p>
</form>
</body>
</body>
</html>